import './SetFieldConfig.scss'
import { DevextremeDataGrid } from './Devextreme'



const SetFieldConfig = ({ dataSource, fields, DataConfig }) => {
    const ColumnOptions = (e) => [
        {
            title: '修改',
            smallTitle: '修改字段配置',
            modalType: 'model',
            page: 'FromModify',
            data: {
                url: 'getAdminA06ProjectList',
                fields,
                init: e.data,
            }
        }
    ]


    return (
        <div className='SetFieldConfig'>
            <DevextremeDataGrid
                dataSource={dataSource}
                fields={fields}
                DataConfig={DataConfig}
                ColumnOptions={ColumnOptions}
            />
        </div>
    );
};

export default SetFieldConfig;